<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Magic Admin. Advanced, Beautiful and Customizable Admin Template.</title>

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/reset.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/grid.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/styles.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery.wysiwyg.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/tablesorter.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/thickbox.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/theme-blue.css" media="screen" />
    <?php  Yii::app()->bootstrap->register(); ?>
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/common.js"></script>
</head>

<body>

<div id="header">
    <div id="header-status">
        <div class="container_12">
            <div class="grid_8">
                &nbsp;
            </div>
            <div class="grid_4">
                <a href="<?php echo Yii::app()->createAbsoluteUrl('user/auth/logout'); ?>">
                    Выход (<?php echo Yii::app()->user->name; ?>)
                </a>
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>

    <?php $this->renderPartial('application.modules.admin.views.common.header._headerMain',array(
        'hederMainLinks'=>$this->hederMainLinks,
    )); ?>

    <div style="clear: both;"></div>

    <?php $this->renderPartial('application.modules.admin.views.common.header._subnav',array(
        'subnavLinks'=>$this->subnavLinks,
    )); ?>

</div>

<div class="container_12">

    <?php if($this->categoryImage): ?>
        <div class="category-image">
            <img src="<?php echo $this->categoryImage->img; ?>" />
        </div>
    <?php endif; ?>

    <div style="clear: both;"></div>

    <?php if($this->dashboardIcons): ?>
        <?php $this->renderPartial('application.modules.admin.views.common.subContent._dashboardIcons',array(
            'dashboardIcons'=>$this->dashboardIcons,
        )); ?>
    <?php endif; ?>

    <div class="content">
        <?php echo $content; ?>
    </div>

    <?php //$this->renderPartial('application.modules.admin.views.common._exampleContent',array()); ?>

    <div style="clear:both;"></div>
</div>


<div id="footer">
    <div class="container_12">
        <div class="grid_12">
            <!-- You can change the copyright line for your own -->
            <p>&copy; 2010. <a href="http://www.templatescreme" title="Visit For More Free Website Templates">Free Website Templates</a></p>
        </div>
    </div>
    <div style="clear:both;"></div>
</div>
</body>
</html>